package com.hnx.admin.aurora.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NoRepeat {
    //锁的前缀，默认为方法名
    String keyPrefix() default "";
    //锁的过期时间，默认为秒
    long expire() default 10;
    //时间单位
    TimeUnit timeUnit() default TimeUnit.SECONDS;
    String keyExpression() default "";
    String message() default "请勿重复提交";
    boolean includeClientIp() default true;
    boolean includeUserId() default false;
}
